package com.zheng.upms.rpc.api;

import com.alibaba.fastjson.JSONArray;
import com.zheng.common.base.BaseService;
import com.zheng.upms.dao.model.UpmsPermission;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
public interface UpmsPermissionService extends BaseService<UpmsPermission> {

    JSONArray getTreeByRoleId(Integer roleId);

    JSONArray getTreeByUserId(Integer usereId, Byte type);
}
